package com.szxy.conf;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: zwz
 * @Date:2020/7/15 21:41
 * @Description:com.szxy.conf
 * @Version:1.0
 **/
@Configuration
public class RestTemplteConf {

    @LoadBalanced  // 与 Ribbon 整合
    @Bean
    public RestTemplate getRestTemplete() {
        return new RestTemplate();
    }

}
